package cs5226.tags;

import java.io.IOException;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import cs5226.dao.*;

public class DBUtilCloseAll extends SimpleTagSupport {
	private ResultSet resultset;
	
	@Override
	public void doTag() throws JspException, IOException {
		if (resultset != null) {
			//DBUtil.closeAll (resultset);
		}		
		
	}

	public ResultSet getResultset() {
		return resultset;
	}

	public void setResultset(Object value) {
		if (value instanceof java.sql.ResultSet) {
			this.resultset = (ResultSet) value;
		}
		else this.resultset = null;
	}
}
